package com.xc.hotelmgr.consumermq.service.FeignService;

import com.xc.hotelmgr.consumermq.pojo.mq.TaskHotelList;
import com.xc.hotelmgr.consumermq.utils.ComResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("datahandler-mt")
public interface MtFeginServiceOence {

    /**
     * 全量及分组酒店信息拉取
     * @param taskHotelList
     * @return
     */
    @RequestMapping(value = "/ht_info/ht_detail_hotel", method = RequestMethod.POST)
    ComResult getHotel(@RequestBody TaskHotelList taskHotelList);

    /**
     * 全量及分组酒店信息拉取
     * @param taskHotelList
     * @return
     */
    @RequestMapping(value = "/ht_info/ht_detail_room", method = RequestMethod.POST)
    ComResult getRoom(@RequestBody TaskHotelList taskHotelList);

    /**
     * 全量及分组酒店信息拉取
     * @param taskHotelList
     * @return
     */
    @RequestMapping(value = "/ht_info/ht_detail_goods", method = RequestMethod.POST)
    ComResult getGoods(@RequestBody TaskHotelList taskHotelList);

    /**
     * 从 消息队列 hotel_id_list_all（暂存所有酒店ID），转移消息 到 hotel_id_list（实际拉取队列）队列进行拉取
     * 从前端hotelIdListAll(on_off/{status})可以暂停（移除对 hotel_id_list_all 队列的监听，转移）
     * @param taskHotelList
     * @return
     */
    @RequestMapping(value = "/ht_info/move_htId",method = RequestMethod.POST)
    String moveHtId(@RequestBody TaskHotelList taskHotelList);

}
